import request from "@/utils/request";

export function getQrCodeUrl(data) {
  return request({
    url: '/sysApkVersion/getQrCodeUrl',
    method: 'get',
    params: { apkPath:data
    }
  })
}



export function getApkVersionListPage(data) {
  return request({
    url: '/sysApkVersion/selectAll',
    method: 'get',
    params: { size:data.size,
      current:data.current
    }
  })
}


export function addApkVersion(data) {
  return request({
    url: '/sysApkVersion/insert',
    method: 'post',
    data
  })
}

export function updApkVersion(data) {
  return request({
    url: '/mdacBrand/update',
    method: 'put',
    data
  })
}
export function delApkVersion(data) {
  return request({
    url: '/sysApkVersion/delete',
    method: 'delete',
    params: { idList:data
    }
  })
}


export function getApkVersionById(data) {
  return request({
    url: '/sysApkVersion/selectOne/'+data,
    method: 'get'
  })
}
